package com.shopnight.service;

import com.aliyuncs.exceptions.ClientException;
import com.shopnight.dto.WXAuthDto;
import com.shopnight.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shopnight.result.ApiResult;
import com.shopnight.vo.UserRankedVO;

import java.util.List;
import java.util.Map;

/**
* @author 86155
* @description 针对表【user(用户信息表)】的数据库操作Service
* @createDate 2022-08-31 17:16:38
*/
public interface UserService extends IService<User> {

    ApiResult<Object>  login(Map<String,Object> Phone);

//    ApiResult<Object>  getPhoneVerifyCode(Map<String,Object> Phone) throws ClientException;

    ApiResult<Object>  getUserByToken();

    List<UserRankedVO>  getUserRanked();

    Map<String,String> getSessionId(String code);

    String authLogin(WXAuthDto wxAuthDto);

    User selectById(Integer userId);
}
